﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public abstract class Cars
{
    public int _price;
    public string _brand;
    public string _model;

    public abstract int Price { get; set; }
}

public class Lite : Cars
{
    public int places;

    public override int Price
    {
        get { return _price; }
        set { _price = value; }
    }
}

public class Truck : Cars
{
    public int weight;

    public override int Price
    {
        get { return _price; }
        set { _price = value; }
    }
}

public class City : Lite
{
    private int mileage;

    public City(string _brand, string _model, int _price)
    {
        this._price = _price;
        this._brand = _brand;
        this._model = _model;
    }

    public override int Price
    {
        get { return _price; }
        set { _price = value; }
    }
}

public class Sport : Lite
{
    private int horsepower;

    public Sport(string _brand, string _model, int _price)
    {
        this._price = _price;
        this._brand = _brand;
        this._model = _model;
    }

    public override int Price
    {
        get { return _price; }
        set { _price = value; }
    }
}

public class Transportation : Truck
{
    private int maxWeight;

    public Transportation(string _brand, string _model, int _price)
    {
        this._price = _price;
        this._brand = _brand;
        this._model = _model;
    }

    public override int Price
    {
        get { return _price; }
        set { _price = value; }
    }
}

public class Cleaning : Truck
{
    private string cleanType;

    public Cleaning(string _brand, string _model, int _price)
    {
        this._price = _price;
        this._brand = _brand;
        this._model = _model;
    }

    public override int Price
    {
        get { return _price; }
        set { _price = value; }
    }
}
